package com.itheima.test6;

import java.util.Scanner;

public class Student extends Person {

    private int score;

    public Student() {
     }

    public Student(String name,int age,int score) {
        super(name,age);
        this.score = score;
    }

    public int getScore() {
        return score;
    }

    public void setScore(int score) {
        this.score = score;
    }

    @Override
    public String toString() {
        return "Student{" +
                "score=" + score +
                "} " + super.toString();
    }
}
